﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using MobileBroadbandUserBlog.MBLM.Core.Interfaces;


namespace MobileBroadbandUserBlog.MBLM.Core.MobileSoftware
{

    public class MWConnSoftware : IMobileSoftware
    {

        private string dirToLook = string.Empty;
        private string fileToFind = string.Empty;

        public MWConnSoftware()
        {
            dirToLook = Environment.GetFolderPath(Environment.SpecialFolder.Programs) + @"\MWConn";
            fileToFind = dirToLook + @"\connlog.txt";
        }

        public override bool IsPresent()
        {
            return File.Exists(fileToFind);
        }

        public override string GetName()
        {
            return "MWConn";
        }

        public override string GetFolderToMonitor()
        {
            return dirToLook;
        }

        public override string GetFileFilterToMonitor()
        {
            return "*.*";
        }

        public override bool HasSolution()
        {
            return false;
        }

        public override string GetSolutionURL()
        {
            return string.Empty;
        }
    }

}
